
public class Circle extends Figure {

	private double radius;
	
	//constructor
	public Circle(double aRadius){
		super(aRadius);
		radius=aRadius;
	}
	
	
	//accessors
	public double getRadius(){
		return radius;
	}
	//mutator
	public void setRadius(double aRadius){
		radius=aRadius;
	}
	

	
	
	public void updateArea() {
		double area;
		
		area=Math.PI*radius*radius;
		setArea(area);
		
	}
	public void updatePerimeter(){
		double perimeter;
		perimeter=2*Math.PI*radius;
		setPerimeter(perimeter);
	}
	

}
